package com.redoor.app.stake.workflow.service;

import com.redoor.app.stake.basicdata.model.LogEnum;

import java.util.List;

/**
 * Created by wangjunlei on 2018/2/23.
 */

public interface WorkOrderLogService {

    /**
     * 添加日志记录到缓存
     * @param obj
     * @return
     */
    boolean addWorOrderLogToRedis(Object obj, LogEnum logEnum);


    /**
     * 处理数据入库
     * @param times 获取记录数目
     */
    List getWorkOrderLogFromRedis(int times, LogEnum logEnum);
}
